package com.xujie.infra.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "weather_stats")
public class WeatherStats {

  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 城市
   */
  @TableField(value = "city")
  private String city;

  /**
   * 日期
   */
  @TableField(value = "data_date")
  private Date dataDate;

  /**
   * 总降水量
   */
  @TableField(value = "total_precipitation")
  private Double totalPrecipitation;

  /**
   * 平均降水量
   */
  @TableField(value = "avg_precipitation")
  private Double avgPrecipitation;

  /**
   * 最大降水量
   */
  @TableField(value = "max_precipitation")
  private Double maxPrecipitation;

  /**
   * 平均风速
   */
  @TableField(value = "avg_wind_speed")
  private Double avgWindSpeed;

  /**
   * 最大风速
   */
  @TableField(value = "max_wind_speed")
  private Double maxWindSpeed;

  /**
   * 记录数量
   */
  @TableField(value = "record_count")
  private Integer recordCount;

  /**
   * 更新时间
   */
  @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;
}